package net.kucoe.grin.utils;

/**
 * Holder utility for value
 * 
 * @author Vitaliy Basyuk
 * @param <T> type
 */
public class ValueHolder<T> {
    
    private T value;
    
    /**
     * Constructs ValueHolder.
     * 
     * @param value
     */
    public ValueHolder(final T value) {
        this.value = value;
    }
    
    /**
     * Returns the value T.
     * 
     * @return the value T.
     */
    public T get() {
        return value;
    }
    
    /**
     * Overrides value the value.
     * 
     * @param value the value to set.
     */
    public void set(final T value) {
        this.value = value;
    }
    
}
